//
//  MHAboutViewController.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/7/31.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHAboutViewController.h"

@interface MHAboutViewController ()

@end

@implementation MHAboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.versionLabel.font = MHRegularFont_15;
    self.appNameLabel.font = MHRegularFont(24);
    
    NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
//    // 获取App的版本号
    NSString *appVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];
//    self.versionLabel.text = [NSString stringWithFormat:@"V%@",appVersion];
    
//    #ifdef DEBUG
    NSString *build =  [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
    self.versionLabel.text = [NSString stringWithFormat:@"V %@ Build %@",appVersion,build];
//    #endif
    
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
